-- Table: public."ScanSubClassification"

-- DROP TABLE public."ScanSubClassification";

CREATE TABLE public."ScanSubClassification"
(
    "ScanSubClassificationId" serial integer NOT NULL ,
    "ScanClassificationId" integer NOT NULL,
    "ScanSubClassificationName" character varying(225) COLLATE pg_catalog."default" NOT NULL,
    "CreatedBy" integer NOT NULL,
    "CreatedDate" timestamp without time zone NOT NULL,
    "ModifiedBy" integer,
    "ModifiedDate" timestamp without time zone,
    "Active" boolean NOT NULL DEFAULT true,
    CONSTRAINT "ScanSubClassification_pkey" PRIMARY KEY ("ScanSubClassificationId"),
    CONSTRAINT "FK_ScanSubClassification_CreatedBy" FOREIGN KEY ("CreatedBy")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION,
    CONSTRAINT "FK_ScanSubClassification_ModifiedBy" FOREIGN KEY ("ModifiedBy")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION,
    CONSTRAINT "FK_ScanSubClassification_ScanClassificationId" FOREIGN KEY ("ScanClassificationId")
        REFERENCES public."ScanClassification" ("ScanClassificationId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
)
WITH (
    OIDS = FALSE
)
TABLESPACE pg_default;

ALTER TABLE public."ScanSubClassification"
    OWNER to postgres;